package cn.wolfcode.education.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Setter
@Getter
@ToString
public class Client {

    private Long id;

    private String name;

    private Long traceNumber; // 跟进次数

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date lastTraceTime;

    private String job; // 职业

    private Long qq; // qq

    private Long tel; // 电话

    private String school; // 来自哪个学校

    private SystemDictionaryItem wishLevel; // 意向等级

    private SystemDictionaryItem wishCampus; // 意向校区

    private Classgrade wishClass; // 意向班级

    private SystemDictionaryItem wishSubject; // 意向学科

    private SystemDictionaryItem origin; // 学员来自,数据字典查询

    private SystemDictionaryItem state; // 状态

    private SystemDictionaryItem clientType; // 客户类型

    private Boolean isTrace; // 是否跟进

    private String remark; // 备注

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date buildDocTime; // 建档时间

    private Employee inputEmployee; //录入人

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date inputTime; // 录入时间

    private Byte age; // 年龄

    private SystemDictionaryItem gender; // 性别

    private String email; // 邮箱

    private String address; // 地址

    private String major; // 主修课程

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date enrollDate; // 登记入学时间

    private String followIssue; // 关注问题

    private School bigCustomer; // 大客户

    private Byte yearsOfWorking; // 工作年限

    private SystemDictionaryItem foreignLangLevel; // 外语等级

    private String wechat; // 微信

    private String introducer; // 介绍人

    private RegularStu introducerStu; // 推荐学员

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date appointTime; // 任命时间,交给谁来跟进

    private Boolean haspaid; // 是否付费

    private Employee attachEmployee; // 当前归属谁来跟进

}